package com.cq.hd.member.api;

import com.alibaba.fastjson.JSONObject;
import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.AdminMemberCardBillPageDto;
import com.cq.hd.member.api.vo.AdminMemberCardBillPageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;

@FeignClient(value = "hd-o2o-member-service", contextId = "member-card-bill-api")
public interface TbMemberCardBillApi {

    // 后台管理端分页列表
    @GetMapping("/member/memberCardBill/pageAdminMemberCardBill")
    Result<Page<AdminMemberCardBillPageVo>> pageAdminMemberCardBill(@SpringQueryMap AdminMemberCardBillPageDto adminMemberCardBillPageDto);

    // 清空3天前的待支付的次卡购买记录
    @PostMapping("/member/memberCardBill/removeWaitPayJob")
    Result<Boolean> removeWaitPayJob();

    // 查询累计成交金额
    @GetMapping("/member/memberCardBill/getTotalAmt")
    Result<BigDecimal> getTotalAmt();

}
